package ua.epam.muzalevskiy.traction.dao;

/**
 * Current class realized <code>Factory Method</code> pattern.
 * <code>DaoFactory</code> class consist of method that returned required
 * for data base entity <code>Data Access Object</code>.
 *
 * @author Muzalevskiy Vitaliy
 */
public class DaoFactory {
    public UserDao getUserDao(){
        return new UserDaoImplementation();
    }
    
    public AdministratorDao getAdministratorDao(){
        return new AdministratorDaoImplementation();
    }
            
    public RouteDao getRouteDao(){
        return new RouteDaoImplementation();
    }
    
    public StopDao getStopDao(){
        return new StopDaoImplementation();
    }
    
    public VehicleDao getVehicleDao(){
        return new VehicleDaoImplementation();
    }
}
